x
Skip to main content

Google Drive File Picker

Tier: Pro, Enterprise

Stirling-PDF allows users to select Files for processing through tools via google drive.

Google Api Access

To enable this features for your users, you must first set up your Google environment. This includes creating a Google Cloud project. Follow the Setting up your environment section of this guide to do so.

Stirling PDF configuration

premium:
...
enabled: true # Enable license key checks for pro/enterprise features
proFeatures:
...
googleDrive:
enabled: true
clientId: <YOUR_CLIENT_ID>
apiKey: <YOUR_API_KEY>
appId: <YOUR_APP_ID>
  • premium.enabled: Set to true to enable premium features.
  • googleDrive.enabled: Set to true to enable google drive file picker features.
  • googleDrive.clientId: Your Google web app's client ID. Go to Credentials and Click Create credentials > OAuth client ID.
  • googleDrive.apiKey: API key for google api access. Go to Credentials and Click Create credentials > API key.
  • googleDrive.appId: Google drive app ID also known as your Project Number Found in your IAM&Admin Project Settings

⚠️ Note

You must set the Authroized Javascript origins for your OAuth client ID to include your Stirling PDF host domain or IP address.

Configurations Examples

Below are examples of the full configuration for enabling the google Drive Picker:

premium:
enabled: true # Enable license key checks for pro/enterprise features
proFeatures:
googleDrive:
enabled: true
clientId: <YOUR_CLIENT_ID>
apiKey: <YOUR_API_KEY>
appId: <YOUR_APP_ID>